package fixedinterval

import "cing.io/cing-api/task"

const Name = "FixedInterval"

const (
    schedule        = "schedule"
    retryTimesLimit = "retryTimesLimit"
)

var taskType = task.TaskType{
    Name:           Name,
    PlannerService: "",
    SpecKeyAndDesc: map[string]string{
        schedule:        `time interval in seconds, e.g. "3600"`,
        retryTimesLimit: `limit on the number of failed retries, e.g. "5"`,
    },
}

func TaskType() *task.TaskType {
    return &taskType
}
